package com.java.interfaces.exer2;

/**
 * @author luzhikun
 * @date 2020/12/6- 15:01
 */
public class InterfaceTest {
    public static void main(String[] args) {
        PersonFu personFu = new Student();
        if (personFu instanceof Student) {
            Student student = (Student) personFu;
            student.eat();
            student.fly();
            student.getSleep();
        }


    }
}
